Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.14 KB

File metadata and controls

28 lines (19 loc) · 1.14 KB

Test Hook

Definition:

  • Conditional logic within the SUT determines whether the "real" code or test-specific logic is run.

Code Example:

class ApplicationController < ActionController::Base
  unless Rails.env.test?
    before_filter :require_login
  end
end

References:

Quality attributes